package org.kim.utils;

public class Constants {

    public static final String notLogin = "Please login system firstly";
    public static final String notAdmin = "Permission insufficient";

    public static final String registerSuccess = "%s %s successfully registered";
    public static final String registerFail = "%s %s register fail";
    public static final String loginSuccess = "%s %s successfully logged in";
    public static final String loginFail = "%s logged in fail";

    public static final String addBookSuccess = "Book \"%s\" by \"%s\" added successfully, inventory: %s";
    public static final String addBookFail = "Book \"%s\" by \"%s\" added fail";

    public static final String borrowBookSuccess = "Book \"%s\" successfully borrowed.";
    public static final String borrowBookFail = "Book \"%s\" borrowed fail";
    public static final String deleteBookSuccess = "book \"%s\" deleted.";
    public static final String bookIsBorrowed = "Cannot delete book \"%s\" because it is currently borrowed.";
    public static final String deleteBookFail = "Cannot delete book \"%s\" because it is currently borrowed.";
    public static final String returnBookSuccess = "Book \"%s\" successfully returned";
    public static final String returnBookFail = "Book \"%s\" returned fail";
    public static final String updateBookInventorySuccess = "Book \"%s\" inventory successfully updated, new inventory: %s";

    public static final String helpInfo =
            "\n====================== Command =======================\n"+
            "$register [admin/user] [accountName] [password]\n" +
            "$login [accountName] [password]\n" +
            "$add \"[bookName]\" \"[authorName]\" [inventory number]\n" +
            "$list \n" +
            "$search \"[bookName]\" \"[authorName]\"\n" +
            "$borrow \"[bookName]\" \"[authorName]\"\n" +
            "$delete \"[bookName]\" \"[authorName]\"\n" +
            "$return \"[bookName]\" \"[authorName]\"\n" +
            "$exit \n"+
            "======================================================\n";
}
